//
// Copyright 2017 Google Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions://
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.//
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

@import "./common";
@import "../packages/mdc-typography/mixins";

$ruler-color: #FD2549;

.demo-typography--section-baseline {
  position: relative;
  margin: 24px;
  padding: 0 24px 24px 24px;
  border: 1px solid #ddd;
  max-width: 350px;
}

.demo-typography__title {
  @include mdc-typography-baseline-top(34px);
  @include mdc-typography-baseline-bottom(22px);
}

.demo-typography__subtitle {
  @include mdc-typography-baseline-top(22px);
  @include mdc-typography-baseline-bottom(28px);

  @include mdc-theme-prop(color, text-secondary-on-background);
}

.demo-typography__body {
  @include mdc-typography-baseline-top(28px);
  @include mdc-theme-prop(color, text-secondary-on-background);
}

.demo-typography-line-1,
.demo-typography-line-2,
.demo-typography-line-3 {
  position: absolute;
  border-top: 1px solid $ruler-color;
  width: 100%;
  left: 0;
  right: 0;
  color: $ruler-color;
  font-size: 10px;
  text-align: right;
}

.demo-typography-line-1 {
  top: 34px;
}

.demo-typography-line-2 {
  top: calc(34px + 22px);
}

.demo-typography-line-3 {
  top: calc(34px + 22px + 28px);
}
